package cc.imos.component.activemq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * 消息消费者 <br />
 *
 * Created by asher on 2017/3/23.
 */
@Slf4j
//@Component
public class ConsumerComponent {

    @JmsListener(destination = "sample.queue")
    public void receiveQueue(String text) {
        log.debug("接收消息：{}", text);
    }
}
